home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 03 - Advanced Graphics / Example 3 / demo.h < prev    next >
Text File  |  1995-02-27  |  694b  |  34 lines

  1. //
  2. //    File: demo.h
  3. //
  4. //    This file is the header for demo.c.
  5. //
  6. //    2/18/95 -- Created by Mick
  7. //
  8.  
  9. // shield
  10. #ifndef _demo_h_
  11. #define _demo_h_
  12.  
  13. // include files
  14.  
  15. #include <QDOffscreen.h>
  16.  
  17. // global defines
  18.  
  19. // extern functions
  20.  
  21. extern void startupDemo( void );
  22. extern void shutdownDemo( void );
  23. extern void demoKey( unsigned char inKey );
  24. extern void doDemoFrame( void );
  25.  
  26. // extern data
  27.  
  28. extern GWorldPtr gOffscreenBuffer;                                        // the port and gdevice of the offscreen buffer
  29. extern PixMapHandle gOffscreenPixels;                                // the actual pixmap of the offscreen buffer
  30. extern Rect gOffscreenRect;                                                                // the size of the offscreen buffer
  31.  
  32. // end of shield
  33. #endif // #ifndef _demo_h_
  34.